package com.pxst.bank.controller;

import com.pxst.bank.req.AccountGroupReq;
import com.pxst.bank.resp.AccountGroupResp;
import com.pxst.bank.service.SysBankCardGroupService;
import com.pxst.resp.ApiResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Chrissy
 * @description 银行账户管理-账户群组相关接口
 * @since 2023-11-15 11:20:32
 */
@RestController
@RequestMapping("/accountGroup")
@Api(tags = "银行账户管理-账户群组相关接口")
public class SysAccountGroupController {
    @Resource
    private SysBankCardGroupService sysBankCardGroupService;

    @ApiOperation(value = "账户群组搜索接口", response = AccountGroupResp.class)
    @GetMapping("/searchAccountGroup")
    public ApiResp searchAccountGroup(AccountGroupReq accountGroupReq) {
        return sysBankCardGroupService.searchAccountGroup(accountGroupReq);
    }
}
